<?php

/**
 * Container form base class.
 *
 * @package    form
 * @subpackage container
 * @version    SVN: $Id: sfPropelFormGeneratedTemplate.php 15484 2009-02-13 13:13:51Z fabien $
 */
class BaseContainerForm extends BaseFormPropel
{
  public function setup()
  {
    $this->setWidgets(array(
      'id'              => new sfWidgetFormInputHidden(),
      'opensocial_name' => new sfWidgetFormInput(),
      'name'            => new sfWidgetFormInput(),
    ));

    $this->setValidators(array(
      'id'              => new sfValidatorPropelChoice(array('model' => 'Container', 'column' => 'id', 'required' => false)),
      'opensocial_name' => new sfValidatorString(array('max_length' => 64, 'required' => false)),
      'name'            => new sfValidatorString(array('max_length' => 64, 'required' => false)),
    ));

    $this->widgetSchema->setNameFormat('container[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    parent::setup();
  }

  public function getModelName()
  {
    return 'Container';
  }


}
